import React from 'react'
import {BrowserRouter,Switch,Route,Redirect} from 'react-router-dom'
import Login from '../views/login'
import Registry from '../views/registry'
import Home from '../views/home'

function Router(){
    return <BrowserRouter>
        <Switch>
            <Route path='/login' component={Login}/>
            <Route path='/registry' component={Registry}/>
            <Route path='/home' component={Home}/>
            <Redirect from="/" to="/home"></Redirect>
        </Switch>
    </BrowserRouter>
}

export default Router